﻿// bookTicketPOJO.h
#pragma once
#include <string>
class bookTicketPOJO
{
private:
	std::string trainCode;
	std::string startStation;
	std::string endStation;
	std::string departTime;
	std::string arriveTime;
	std::string timeCost;
	std::string travelDate;
public:
	bookTicketPOJO() = default;

	bookTicketPOJO(std::string trainCode, std::string startStation, std::string endStation,
		std::string departTime, std::string arriveTime, std::string timeCost, std::string travelDate = "");

	// Getter methods
	std::string getTrainCode() const;
	std::string getStartStation() const;
	std::string getEndStation() const;
	std::string getDepartTime() const;
	std::string getArriveTime() const;
	std::string getTimeCost() const;
	std::string getTravelDate() const;

	// Setter methods
	void setTrainCode(const std::string& value);
	void setStartStation(const std::string& value);
	void setEndStation(const std::string& value);
	void setDepartTime(const std::string& value);
	void setArriveTime(const std::string& value);
	void setTimeCost(const std::string& value);
	void setTravelDate(const std::string& value);
};
